/* 
 * File:   Rectangle.h
 * Author: mauro
 *
 * Created on 8 de septiembre de 2014, 19:25
 */

#ifndef RECTANGLE_H
#define	RECTANGLE_H
#include "Object.h"
#include "ObjFactory.h"
#include "SkinFactory.h"
#include "Dot.h"
#include <Box2D/Box2D.h>

class Rectangle {
private:
    Object *object;
    Dot *dot;
    
public:
       
    Rectangle();
    Rectangle(ObjFactory *objFactory,bool flagStatic, float x,float y,float w, float h, float mass, float rotation);
    
    void draw(Uint8 r,Uint8 g,Uint8 b,Uint8 a);

    b2Vec2 getPosition();
    float getAngle();
    float getAngularVelocity();
    
    void setAngularVelocity(float velocity);
    
    virtual ~Rectangle();
    


};

#endif	/* RECTANGLE_H */

